# You may, but are NOT required to, use object-oriented programming (OOP) in your solution.
# If you choose to use OOP, the methods described below should be class instance methods.

# You may put any variables that you wish to maintain at the module level:

my_variable = 0 # Example optional module variable
import random 

# Other auxiliary functions are allowed, but your script must implement at least the three
# functions below, no matter what approach you choose to use. For the OOP option, don't
# forget to add 'self' as a first argument of every function.

# hunt_slack determines whether to hunt or slack, with a bit of randomness favoring either hunt or slack
def hunt_slack(favor_hunt_or_slack):
    decision = 's'
    if favor_hunt_or_slack == 0:
        if int(random()) == 0:
            decision = 's'
        if int(random()) == 1:
            decision = 'h'
    if favor_hunt_or_slack == 1:
         # favors hunt
        if random() < 0.7:
            decision = 'h'
        else:
            decision = 's' 
               
    if favor_hunt_or_slack == -1: 
       # favors hunt
       if random() < 0.7:
           decision = 's'
       else:
           decision = 'h'
    print(decision)           
    return decision;
    
def hunt_choices(round_number, current_food, current_reputation, m,  player_reputations):
    # The main routine that plays each individual round.
    hunt_decisions = []
    
    number_of_players = len(player_reputations)
    
    n = 0
    if m < number_of_players:
        print("bazooka")
        for n in range(0, number_of_players):
           hunt_decisions.append('h')
           print(n)
    else:
        for n in range(0, number_of_players):
            if (player_reputations[n] > current_reputation + .1 or player_reputations[n] < current_reputation -0.1):
                hunt_decisions.append(hunt_slack(0))
            if (player_reputations[n] > current_reputation + 0.2):
                hunt_decisions.append(hunt_slack(1))
        
            if (player_reputations[n] < current_reputation - 0.2):
                hunt_decisions.append(hunt_slack(-1))
        
            
    
            
    print(int(number_of_players)/3)
    print(number_of_players)
    print( hunt_decisions)
    return hunt_decisions;

def hunt_outcomes(food_earnings):
    
    pass 
def round_end(award, m, number_hunters):
 

    pass


hunt_choices(1,0,0,5,[0,0,0,0,0,0,0,0,0])

